package com.foreknow.aop;

/**
 * 歌唱家
 */
public class Instrumentailst implements Performer{
    private String song;
    private Instrument instrument;

    public String getSong() {
        return song;
    }

    public void setSong(String song) {
        this.song = song;
    }

    public Instrument getInstrument() {
        return instrument;
    }

    public void setInstrument(Instrument instrument) {
        this.instrument = instrument;
    }

    @Override
    public void performer() {
        System.out.println("play"+song);
        instrument.play();
    }
}
